<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>

<script language="JavaScript">
function checkContent() {
	if (document.jvForm.name.value == "") {
		alert('链接名称不能为空');
		document.jvForm.name.focus();
		return (false);
	} else if (document.jvForm.url.value == "") {
		alert('链接地址不能为空');
		document.jvForm.url.focus();
		return (false);
	}
	
}
</script>
	</head>
	<body>
		<div class="body-box">
			<div class="rhead">
				<div class="rpos">
					当前位置:外闻链接新增/修改
				</div>
				<form class="ropt">
					<input type="submit" value="返回列表"
						onclick="this.form.action='link.action';" />
					<input type='hidden' name='page.pageNo' id='pageNo'
						value="${page.pageNo }" />
				</form>
				<div class="clear"></div>
			</div>


			<form method="post" action="link!save.action" name="jvForm" id="jvForm" onsubmit="return checkContent();">
				<input type="hidden" name="id" value="${id }" />
				<input type='hidden' name='page.pageNo' value="${page.pageNo }" />
				<table width="100%" class="pn-ftable" cellpadding="2"
					cellspacing="1" border="0">
					<tr>
						<td width="100" height="108" align="right" valign="middle">
							链接名称：
						</td>
						<td  align="left" valign="middle">
							<label>
								<input type="text" id="name" name="name" value="${name}" size="40"/>
							</label>
						</td>
					</tr>

					<tr>
						<td width="100" height="108" align="right" valign="middle">
							链接地址：
						</td>
						<td  align="left" valign="middle">
							<label>
								<input type="text" id="url" name="url" value="${url}" size="40"/>
							</label>
						</td>
					</tr>

					<tr>
						<td width="100" height="108" align="right" valign="middle">
							是否显示：
						</td>
						<td  align="left" valign="middle">
							<label>
								<select name="display">
									<option value="true" ${display?"selected":""}>显示</option>
									<option value="false" ${display?"":"selected"}>不显示</option>
								</select>
							</label>
						</td>
					</tr>

					<tr>

						<td colspan="2" class="pn-fbutton">
							<input type="submit"  value="提交" />
							&nbsp;
							<input type="reset" value="重置" />
						</td>
					</tr>
				</table>
			</form>
		</div>
	</body>
</html>